<template>
	<view>
		<rich-text :nodes="content"></rich-text>
	</view>
</template>

<script>
	import {private_page, agreement} from "@/api/system/user.js"
	
	export default {
		onLoad(options){
			this.work = options.url
			this.getContent()
		},
		data() {
			return {
				work:'',
				content:''
			}
		},
		methods: {
			getContent(){
				let method = ''
				if(this.work=='private'){
					private_page().then(res=>{
						this.content = res.data.privateContent
					})
				}else{
					agreement().then(res=>{
						this.content = res.data.agreementContent
					})
				}
				
			}
		}
	}
</script>

<style>

</style>
